{% extends "base.html" %}
{% load paginator %}
{% load timezone %}
{% block title %}{% if CURRENT_LANGUAGE %}{{ CURRENT_LANGUAGE.name }} - {% endif %}TAGS - Snipperize{% endblock %}
{% block meta %}
<meta name="keywords" content="{% if CURRENT_LANGUAGE %}{{ CURRENT_LANGUAGE.name }}, {{ CURRENT_LANGUAGE.name }} tags {% else %} {% for l, v in request.SUPPORT_LANGUAGES.items %}{{ v }} tags{% if not forloop.last %}, {% endif %}{% endfor %}, {% for l, v in request.SUPPORT_LANGUAGES.items %}{{ v }}{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}" />
<meta name="description" content="Here are the {% if CURRENT_LANGUAGE %}{{ CURRENT_LANGUAGE.name }} {% endif %}tags. Snipperize is a code clips warehouse, support {% for l, v in request.SUPPORT_LANGUAGES.items %}{{ v }}{% if not forloop.last %}, {% endif %}{% endfor %}" />
{% endblock %}
{% block promo %}
 <div class="promo orange">Here are the {% if CURRENT_LANGUAGE %}<a href="{% url language_snippets CURRENT_LANGUAGE.key %}" title="{{ CURRENT_LANGUAGE.name }} snippets">{{ CURRENT_LANGUAGE.name }}</a> {% endif %}tags. Please choose your favorite one.</div>
{% endblock %}
{% block body_content %}
{% if CURRENT_LANGUAGE %}<h2><span class="mw-headline"><a href="{% url language_snippets CURRENT_LANGUAGE.key %}" title="{{ CURRENT_LANGUAGE.name }} snippets">{{ CURRENT_LANGUAGE.name }}</a></span></h2>{% endif %}
{% if object_list %}
{% for tag in object_list %}
    <code><a href="{% if CURRENT_LANGUAGE %}{% url language_tag_snippets CURRENT_LANGUAGE.key tag.get_escape_name tag.key.id %}{% else %}{% url tag_snippets tag.get_escape_name tag.key.id %}{% endif %}" title="{{ tag.get_language.name }} {{ tag.name }} snippets">{{ tag.name }}</a></code>{% if not forloop.last %}, {% endif %}
{% endfor %}
{% paginator %}
{% else %}
<p><span style="background:yellow">There's no tags{% if CURRENT_LANGUAGE %} for <a href="{% url language_snippets CURRENT_LANGUAGE.key %}" title="{{ CURRENT_LANGUAGE.name }} snippets">{{ CURRENT_LANGUAGE.name }}</a>{% endif %}. Do you want to <a href="{% url snippet_add %}" title="add new snippet">add your snippets</a>?</span></p>
{% endif %}
{% endblock %}